package
{
	import flash.display.Sprite;

	public class MainMenu extends Menu
	{
		
		public function MainMenu(game:DRace)
		{
			super();
			btnShop.onEventClick = game.onShopButtonPressed;
			btnRace.onEventClick = game.onRaceButtonPressed;
			
		}
		public function setLanguage(xmlFile:XML):void
		{
			btnRace.setText(xmlFile.Menu.attribute("btnRace"));
			btnMailBox.setText(xmlFile.Menu.attribute("btnMailBox"));
			btnShop.setText(xmlFile.Menu.attribute("btnShop"));
			labelWelcome.text =(xmlFile.Menu.attribute("labelWelcome"));
		}
	}
}